#include "WorkZone.h"
#include "screen.h"
#include <vector>
using namespace std;

WorkZone* WorkZone::WorkZoneInstance = NULL;
WorkZone::WorkZone()  
{
	//scr()->boxex("Robot Engine By Jazzy Jester",0,0,79,24,BT_TWO,0x0a,0x0b);
	//scr()->puttext("sdasdasd",10,10,0x0a);
}
WorkZone::~WorkZone(void)
{
}
void WorkZone::addArm(Arm * a)
{
	Arms.push_back(a);
}

void WorkZone::AcceptVisitor(Visitor * v)
{
	vector<Arm*>::iterator i;
	for(i = Arms.begin(); i!= Arms.end(); ++i)
		(*i)->Accept(v);
}

Arm * WorkZone::GetArm(int ind)
{
	return Arms[ind];
}

WorkZone *Zone() 
{
	return WorkZone::GetInstance();
}
